package com.tao.springbootstudy01hello.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**将该类标注为Controller层*/
@Controller
/**将方法返回的对象写入body区*/
@ResponseBody
/**@ RestController是上述两个注解的合体版*/

public class hello {
    @RequestMapping("/helloSpringBoot")
    public String hello01(){
        return "hello";
    }
}